﻿-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
CREATE PROCEDURE [dbo].[A_GET_UtilizadorCampeonatos]
	-- Add the parameters for the stored procedure here
	@IDUtilizador as int
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;
    
	SELECT
	AC.IDCampeonato,
	AC.Nome,
	AUC.Activo
	FROM A_RegistoCampeonatos AUC
	INNER JOIN A_Campeonatos AC
	ON AUC.IDCampeonato = AC.IDCampeonato
	AND AUC.IDUtilizador = @IDUtilizador
	--Order by Activo Desc
	
END
